#include "uart_driver.h"

extern UART_HandleTypeDef huart1;

int fputc(int ch, FILE *f)
{
	HAL_UART_Transmit(&huart1, (uint8_t *)&ch, 1, 0xffff);
	return ch;
}
	
int fgetc(FILE *f)
{
	uint8_t ch = 0;
	HAL_UART_Receive(&huart1, (uint8_t *)&ch, 1, 0xffff);
	return ch;
}

void uart_send_task_test(uint8_t * ch, int size)
{
	HAL_UART_Transmit(&huart1, ch, size, 0xffff);
}
